BEGIN{
   FS="[.,]";
   last_timestamp=1;

   while((getline<"last_timestamp_log")>0){	
     last_timestamp=$1;
   }
   #print "last_timestamp="last_timestamp

   #iPad:4052 --winpad:24-- apad:994 IP:15376 --iPod:1-- flash:3154 aphone:9633 tv:60 --winphone:44-- iPhone:2415 --ott:1--

   idx[0]="iPad";
   idx[1]="apad";
   idx[2]="IP";
   idx[3]="flash";
   idx[4]="tv";
   idx[5]="iPhone";
   idx[6]="aphone";    
}
{
   platform[$3]=$4;
   current_timestamp=$1;
}
END{
   if(last_timestamp < current_timestamp)
   {
      for(i=0;i<7;i++)
      {
         printf("%s:%d ", idx[i],platform[idx[i]]);
      }
      printf("\n");  
   }

   print current_timestamp > "last_timestamp_log"
}
